#define _CRT_SECURE_NO_WARNINGS

#include "SList.h"

void SLTTest()
{
	SLT* plist = CreateSLT(0);
	SLTPushBack(&plist, 1);
	SLTPushBack(&plist, 2);
	SLTPushBack(&plist, 3);
	SLTPushBack(&plist, 4);
	SLTPushBack(&plist, 5);
	PrintSLT(plist);

	SLTPopBack(&plist);
	PrintSLT(plist);
	SLTPopBack(&plist);
	PrintSLT(plist);
	SLTPopBack(&plist);
	PrintSLT(plist);
	SLTPopBack(&plist);
	PrintSLT(plist);
	SLTPopBack(&plist);
	PrintSLT(plist);

	//SLTPushBack(&plist, 90);
	//PrintSLT(plist);
	//SLTPushBack(&plist, 91);
	//PrintSLT(plist);
	//SLTPushBack(&plist, 92);
	//PrintSLT(plist);
	//SLTPushBack(&plist, 93);
	//PrintSLT(plist);
	//SLTPushBack(&plist, 94);
	//PrintSLT(plist);
	//SLTPushBack(&plist, 95);
	//PrintSLT(plist);

	SLTDesttroy(&plist);
}

int main()
{
	SLTTest();

	return 0;
}